package com.xiaojianhx.demo.algorithm.utils;

import java.util.Arrays;

/**
 * Utils
 * 
 * @author xiaojianhx
 * @version V1.0.0 $ 2021-05-18 01:10:43 init ---- xiaojianhx
 */
public interface Utils {

    static void print(int[] a) {
        System.out.println(Arrays.toString(a));
    }

    static void swap(int[] arr, int a, int b) {

        var tmp = arr[a];
        arr[a] = arr[b];
        arr[b] = tmp;
    }
}